import request from '@/utils/request'


export function listAllYear(){
  return request({
    url:"/system/year/listAllYear",
    method:"GET"
  });
}

export function listAllEnableYear(){
  return request({
    url: "/system/year/listAllEnableYear",
    method: 'get',
  });
}


export function listEnableYear(query = {
  pageNum: 1,
  pageSize: 50
}) {
  return request({
    url: "/system/year/listEnableYear",
    method: 'get',
    params: query
  });
}

// 查询【请填写功能名称】列表
export function listYear(query = null) {
  return request({
    url: '/system/year/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getYear(id) {
  return request({
    url: '/system/year/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addYear(data) {
  return request({
    url: '/system/year',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateYear(data) {
  return request({
    url: '/system/year/update',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】
export function delYear(id) {
  return request({
    url: '/system/year/delete/' + id,
    method: 'post'
  })
}
